<div class="row">
    <div class="col-md-12">
        <div class="widget stacked">
        	<div class="widget-header">
                <i class="icon-list"></i>
                <h3><?php echo isset($title_for_layout)?$title_for_layout:$this->l('Creating a prescription'); ?></h3>
            </div> <!-- /.widget-header -->
            <div class="widget-content">
                <div class="table-responsive">
                    <div class="page-header">
                        <h3><?php echo $title; ?></h3>
                    </div>
                    <div class="col-md-7">
	            		<form role="form" class="form-horizontal" method="post" action="<?php echo site_url('Doctor/Prescription/create/'); ?>">
							<div class="form-group">
								<label class="col-sm-2 control-label" for="id_consultation"><?php echo $this->l('Consultation'); ?></label>
								<div class="col-sm-10">
									<select class="form-control" id="id_consultation" name="id_consultation" />
										<option value="">-- <?php echo $this->l('Select a consultation'); ?> --</option>
										<?php 
                                                                                if (!empty($consultations)):
                                                                                    foreach ($consultations as $key => $value) { ?>
											<option value="<?php echo $value->id_consultation; ?>"><?php echo $value->firstname.' '.$value->lastname; ?></option>
										<?php } 
                                                                                endif; ?>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label" for="content"><?php echo $this->l('Content'); ?></label>
								<div class="col-sm-10">
									<textarea class="form-control" id="content" name="content" rows="3"><?php echo set_value('content'); ?></textarea>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-2">
									
								</div>
								<div class="col-sm-10">
									<button type="submit" class="btn btn-default" name="btn_submit" value="1"><?php echo $this->l('Create'); ?></button>
									<a class="btn btn-danger" href="<?php echo site_url('Doctor/Prescription/') ?>"><?php echo $this->l('Discard'); ?></a>
								</div>
							</div>
						</form>
	                </div>
                </div>
            </div><!-- box-content -->
        </div><!-- /.box -->
    </div><!-- /.col (MAIN) -->
</div>